package com.bbc.entity.product;

import java.util.List;

import com.bbc.base.BaseEntity;
import com.bbc.entity.comment.Comment;

/**
 * 2012-11-26
 * 
 * @author hanshaofeng
 * 
 */
public class Product extends BaseEntity {

	private static final long serialVersionUID = 1L;
	private Integer id;
	private Long numIid;
	private Integer showType;
	private String nick;
	private String cid;
	/* 商品上传后的状态。onsale出售中，instock库中 */
	private String approveStatus;
	private String price;
	private String type;
	private String title;
	private String detailUrl;
	private String picUrl;
	private Integer enjoy;
	private Integer enjoy24;
	private Integer enjoy168;
	private String enjoys;
	private Integer pv;
	private Integer pv24;
	private Integer pv168;
	private String pvs;
	private Integer ordering;
	private String fromKey;
	private Integer userId;
	private String userNick;
	private Integer type1;
	private Integer type2;
	private Integer type3;
	private Integer type4;
	private List<Comment> comments;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Long getNumIid() {
		return numIid;
	}

	public void setNumIid(Long numIid) {
		this.numIid = numIid;
	}

	public Integer getShowType() {
		return showType;
	}

	public void setShowType(Integer showType) {
		this.showType = showType;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getCid() {
		return cid;
	}

	public void setCid(String cid) {
		this.cid = cid;
	}

	public String getApproveStatus() {
		return approveStatus;
	}

	public void setApproveStatus(String approveStatus) {
		this.approveStatus = approveStatus;
	}

	public String getPrice() {
		return price;
	}

	public void setPrice(String price) {
		this.price = price;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDetailUrl() {
		return detailUrl;
	}

	public void setDetailUrl(String detailUrl) {
		this.detailUrl = detailUrl;
	}

	public String getPicUrl() {
		return picUrl;
	}

	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}

	public Integer getEnjoy() {
		return enjoy;
	}

	public void setEnjoy(Integer enjoy) {
		this.enjoy = enjoy;
	}

	public Integer getEnjoy24() {
		return enjoy24;
	}

	public void setEnjoy24(Integer enjoy24) {
		this.enjoy24 = enjoy24;
	}

	public Integer getEnjoy168() {
		return enjoy168;
	}

	public void setEnjoy168(Integer enjoy168) {
		this.enjoy168 = enjoy168;
	}

	public String getEnjoys() {
		return enjoys;
	}

	public void setEnjoys(String enjoys) {
		this.enjoys = enjoys;
	}

	public Integer getPv() {
		return pv;
	}

	public void setPv(Integer pv) {
		this.pv = pv;
	}

	public Integer getPv24() {
		return pv24;
	}

	public void setPv24(Integer pv24) {
		this.pv24 = pv24;
	}

	public Integer getPv168() {
		return pv168;
	}

	public void setPv168(Integer pv168) {
		this.pv168 = pv168;
	}

	public String getPvs() {
		return pvs;
	}

	public void setPvs(String pvs) {
		this.pvs = pvs;
	}

	public Integer getOrdering() {
		return ordering;
	}

	public void setOrdering(Integer ordering) {
		this.ordering = ordering;
	}

	public String getFromKey() {
		if ("".equals(fromKey)) {
			return null;
		}
		return fromKey;
	}

	public void setFromKey(String fromKey) {
		this.fromKey = fromKey;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getType1() {
		return type1;
	}

	public void setType1(Integer type1) {
		this.type1 = type1;
	}

	public Integer getType2() {
		return type2;
	}

	public void setType2(Integer type2) {
		this.type2 = type2;
	}

	public Integer getType3() {
		return type3;
	}

	public void setType3(Integer type3) {
		this.type3 = type3;
	}

	public Integer getType4() {
		return type4;
	}

	public void setType4(Integer type4) {
		this.type4 = type4;
	}

	public String getUserNick() {
		return userNick;
	}

	public void setUserNick(String userNick) {
		this.userNick = userNick;
	}

	public List<Comment> getComments() {
		return comments;
	}

	public void setComments(List<Comment> comments) {
		this.comments = comments;
	}

}
